<template>
  <div class="play-page-disc" :class="{ playing: playing }">
    <img :src="currentSong.picUrl | completeImageUrl" alt="" />
  </div>
</template>

<script>
export default {
  props: ["currentSong", "playing"],
};
</script>

<style lang="less">
.play-page-disc {
  img {
    animation: rotate 8s linear infinite;
    animation-play-state: paused;
    border-radius: 50%;
  }
  &.playing {
    img {
      animation-play-state: running;
    }
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
</style>